﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Betop.Lib.Core.Attach
{
    public partial class AttachInfo
    {

        public const string INSERT_SQL = "insert into [-TableName-] ( [ID], [Name], [BindID], [Path], [Type], [Size], [InputTime], [Flag], [CreatorID], [CreatorName]) values ( @ID, @Name, @BindID, @Path, @Type, @Size, @InputTime, @Flag, @CreatorID, @CreatorName)";
        public const string UPDATE_SQL = "update [-TableName-] set  [ID] = @ID, [Name] = @Name, [BindID] = @BindID, [Path] = @Path, [Type] = @Type, [Size] = @Size, [InputTime] = @InputTime, [Flag] = @Flag, [CreatorID] = @CreatorID, [CreatorName] = @CreatorName where ID = @ID";
        public AttachInfo() { }
        public Int32 ID
        {
            get;
            set;
        }
        public String Name
        {
            get;
            set;
        }
        public Int32 BindID
        {
            get;
            set;
        }
        public String Path
        {
            get;
            set;
        }
        public String Type
        {
            get;
            set;
        }
        public Int32 Size
        {
            get;
            set;
        }
        public DateTime InputTime
        {
            get;
            set;
        }
        public Int32 Flag
        {
            get;
            set;
        }
        public Int32? CreatorID
        {
            get;
            set;
        }
        public String CreatorName
        {
            get;
            set;
        }

    }
}
